package org.han.permission.mapper;

import org.apache.ibatis.annotations.Param;
import org.han.base.mapper.BaseMapper;
import org.han.permission.domain.Role;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {

    // 删除角色权限
    void deletePermissionByRoleId(Long roleId);

    // 批量新增
    void batchSaveRolePermission(@Param("roleId") Long roleId, @Param("permissionSns") List<String> permissionSns);

    // 查询角色权限
    List<String> getRolePermissionSns(Long roleId);
}
